<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="admin_menu.jsp"%>
<!--/sidebar-->
<div class="main-wrap">

	<div class="crumb-wrap">
		<div class="crumb-list">
			<i class="icon-font"></i><a href="admin_index.jsp">首页</a><span
				class="crumb-step">&gt;</span><a class="crumb-name"
				href="admin_dobookselect">图书管理</a><span class="crumb-step">&gt;</span><span>新增图书</span>
		</div>
	</div>
	<div class="result-wrap">
		<div class="result-content">
			<form action="admin_dobookadd" method="post" id="myform" name="myform" enctype="multipart/form-data">
				<table class="insert-tab" width="100%">
					<tbody>
						<tr>
							<tr>
								<th><i class="require-red">*</i>图书名称：</th>
								<td><input class="common-text required" id="title" name="name" size="50" value="" type="text"></td>
							</tr>
							<th><i class="require-red">*</i>图书分类：</th>
							<td>
								<select class="common-text required" id="title" name="parent">
									<c:forEach var="i" items="${flist}">
										<option value="${i.category_id}" disabled>${i.category_name}</option>
										<c:forEach var="j" items="${clist}">
											<c:if test="${j.category_parent == i.category_id}">
												<option value="${i.category_id}-${j.category_id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${j.category_name}</option>
											</c:if>
										</c:forEach>
									</c:forEach>
								</select>
							</td>
							<tr>
								<th><i class="require-red">*</i>图书封面：</th>
								<td><input class="common-text required" id="title" name="image" size="50" value="" type="file"></td>
							</tr>
							<tr>
								<th><i class="require-red">*</i>图书价格：</th>
								<td><input class="common-text required" id="title" name="price" size="50" value="" type="text"></td>
							</tr>
							<tr>
								<th><i class="require-red">*</i>图书描述：</th>
								<td><input class="common-text required" id="title" name="description" size="50" value="" type="text"></td>
							</tr>
							<tr>
								<th><i class="require-red">*</i>图书库存：</th>
								<td><input class="common-text required" id="title" name="stock" size="50" value="" type="text"></td>
							</tr>
						</tr>
						
						<tr>
							<th></th>
							<td>
								<input class="btn btn-primary btn6 mr10" value="提交" type="submit"> <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>

</div>
</div>
</body>
</html>